export const addItem = ({ item }) => {
    return {
        type: "ADD",
        item,
    };
};
export const deleteItem = ({ index }) => {
    return {
        type: "DELETE",
        index,
    };
};
export const updateItem = ({ item, index }) => {
    return {
        type: "UPDATE",
        index,
        item,
    };
};
export const changeMode = ({ mode }) => {
    return {
        type: "MODE",
        mode,
    };
};
export const changeVisable = ({ visable }) => {
    return {
        type: "VISABLE",
        visable,
    };
};
